package day6;

import java.util.Random;

public class t6 {
    public static void main(String[] args) {
        int []arr={2,588,888,1000,10000};
        Random r=new Random();
        for (int i = 0; i < arr.length; i++) {
            int temp;
            int change=r.nextInt(5);
            temp=arr[i];
            arr[i]=arr[change];
            arr[change]=temp;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]+"元红包已被取出！！！");
        }
    }
}
